
<div class="wiki-head">
	<ul class="wiki-nav clearfix">
		<li class="wiki-sidebar-toggle">
			<a href="#"><i class="glyphicon glyphicon-home"></i></a>
		</li>

		<li class="wiki-title">
			<a href="/" title="home">home</a>
				»			
			<%
			var links = model.url.substring(1, model.url.length).split('/');
			var link = '/';
			var text = '';
			for(var i in links){
			link = link + links[i] + '/';
			title = links[i];
			if(i != links.length - 1){%>
			<a href="<%=link%>" title="<%=title%>"><%=title%></a>
				»
			<%}else{%>
			<%=title%>
			<%}}%>
		</li>
		<li class="wiki-oper">
			<a class=" <%if(model.oper === 'view'){%>active<%}%>" href="<%=model.url%>">浏 览</a>
			<a class=" <%if(model.oper === 'edit'){%>active<%}%>" href="<%=model.url%>?oper=edit">编 辑</a>
			<a class=" <%if(model.oper === 'discuss'){%>active<%}%>" href="<%=model.url%>?oper=discuss">讨 论</a>
		</li>
		<li class="wiki-search">
			
		</li>
	</ul>

	<div class="wiki-meta clearfix">
		<ul class="clearfix">	
			<li class="date">
				<i class="glyphicon glyphicon-time"></i>
				<a href="/wiki/timeline/<%=model.meta.date.format('YYYYMMDD')%>">
					<%-model.meta.date.format('MMM DD, YYYY')%>
				</a>
			</li>
			<li class="tags">
				<i class="glyphicon glyphicon-tags"></i>
				<%
					for(var i in model.meta.tags){
						var tag = model.meta.tags[i];
				%>
				<a href="/wiki/tags/<%=tag%>" class="badge"><%=tag%></a>
				<%}%>
			</li>
		</ul>
	</div>

</div>